<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style>
	body{
		font-size:9px ;
		font-family:黑体,微软雅黑;
	}
	.table{
		border:black 1px solid !important;
	}
	.table tr th{
		border:black 1px solid !important;
		text-align: center;
		padding:0px 2px !important;
	}
	.table tr td{	
		border:black 1px solid !important;
		padding:0px 2px !important;
		text-align: center;
	}
</style>
<script type="text/javascript">
	function paceDoneCallback(){
		window.print();
		//top.main.formSubmit();
		top.$("#modal_inStock_form").modal("hide");
	}
</script>
<div id="printContent" >
	
		<div class="text-center"><h5>${shop.shopName }采购入库单</h5></div>
	
	    <label  style="font-size:1.2em;margin-left:20px">入库单号 : ${inStock.inStockNo }</label><label style="font-size:1.2em;margin-left:20px">入库仓库 : ${inStock.warehouse }	</label><label style="font-size:1.2em;margin-left:20px">入库日期 : <fmt:formatDate value="${inStock.createDate}" type="date" dateStyle="default" pattern="YY-MM-dd HH:mm"/>	</label>
		<table class="cntable table table-bordered  " >
					<thead>
						<tr class="success" >
							<th >序号</th>
							
							<th>商品编码</th>
							<th>商品名称</th>
							<th>规格</th>
							<th>单位</th>
							<th>入库类型</th>
							<th>采购数</th>
							<th>入库数量</th>
							<th>备注</th>
						</tr>
					</thead>
					<tbody >
						<c:forEach var="inStockShow" items="${inStock.inStockShows}" varStatus="status">
							<c:forEach var="inStockcollocation" items="${inStockShow.inStockCollocations}" varStatus="status">
								<tr >
									<td>${status.index+1 }</td>
									<td>${inStockcollocation.collocation.collocationNo }</td>
									<td>${inStockShow.cargo.cargoName }</td>
									<td>${inStockcollocation.collocation.propertyNameOne }/${inStockcollocation.collocation.propertyNameTwo }</td>
									<td>${inStockShow.cargo.unit }</td>
									<td></td>
									
									<td>${inStockcollocation.purchaseCollocation.purchaseNumber }</td>
														
									<td>
										${inStockcollocation.collocationNum }
									</td>
									<td>
										${inStockcollocation.comment }
									</td>
								</tr>
							</c:forEach>	
						</c:forEach>				
					</tbody>
			
				</table>     
				<div class="row" style="margin-top:6px;">
					<div style="float:left;"><span style="padding-left:10px;">其他金额：${inStock.purchase.otherMoney }</span></div>
					<div style="float:right;"><span style="padding-right:35px;">应付金额：${inStock.purchase.otherMoney+ purchase.purchaseMoney}</span></div>
				</div>
				<div class="row">
					<div style="float:left;"><span style="padding-left:10px;">备注说明：${inStock.comment}</span></div>
				</div>
				<div class="row" style="margin-top:6px;">
					<label  style="font-size:1.2em;padding-left:10px;">采购单号 : ${inStock.purchase.purchaseNo }</label><label style="font-size:1.2em;margin-left:20px">采购员 : ${inStock.purchase.purchaseName }	</label><label style="font-size:1.2em;margin-left:20px">制单人:${inStock.purchase.createUserName } </label><label style="font-size:1.2em;margin-left:20px">采购备注:${inStock.purchase.comment } </label>
				</div>
</div>
<script type="text/javascript">

</script>
<%request.setAttribute("noScripts","formpickers.location;"); %>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formvalidations.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/ui/moment.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
